#ifndef LOGIN_H
#define LOGIN_H

#include <QWidget>
#include <frmkeyboard.h>
#include <QMessageBox>
#include "usermanager.h"
#include "QDebug"
#include "permission.h"
#include "frmkeyboard.h"

namespace Ui {
class Login;
}

class Login : public QWidget
{
    Q_OBJECT

public:
    explicit Login(QWidget *parent = nullptr);
    ~Login();
    //键盘实例化
    frmKeyBoard *keyboard = new frmKeyBoard();
    bool isKeyBoardShow;
    //hide keyboard by keyboard's close button
    void hidekeyboard();

signals:
    void display(int number);
    void reset();
    void admin(bool s);

private slots:
    void on_login_clicked();

    void on_keyboard_clicked();

private:
    Ui::Login *ui;
    void initStyleSheet();
};

#endif // LOGIN_H
